<?php
class ExportModel extends Model {
	
	public function getAllDict() {
		$dict = array();
		$result = $this->selectAllIds('dictionary');
		foreach ($result as $row) {
			$dict[] = new Dictionary($row->id);
		}
		return $dict;
	}
	
	public function getAllLeks($wsId) {
		$leks = array();
		$result = $this->selectAllIds('leks', 'id_website = '. $wsId);
		foreach ($result as $row) {
			$leks[] = new Leksem($row->id);
		}
		return $leks;
	}
}